class BugHistory < ActiveRecord::Migration
  def self.up
   execute "CREATE TABLE `bugs_history` (
      `id` int(11) NOT NULL auto_increment,
      `bug_id` int(11) NOT NULL,
      `created_at` timestamp NOT NULL,
      `user_id` int(11) NOT NULL,
      PRIMARY KEY  (`id`)
    )"
   execute "ALTER TABLE `bugs` ADD COLUMN created_at timestamp NOT NULL"    
   execute "ALTER TABLE `users` ADD COLUMN type varchar(50) NOT NULL"       
  end
  

  def self.down
  end
end
